package com.example.demo.bean;

import org.springframework.boot.CommandLineRunner;

import java.nio.charset.StandardCharsets;


@SuppressWarnings("unused")
public class UserCommandLineRunner implements CommandLineRunner {
    String arg;

    public UserCommandLineRunner(String args){
        this.arg=args;
    }
    @Override
    public void run(String... args) {
        System.out.println(arg+new String("使用自动装配的CommandLineRunner".getBytes(StandardCharsets.UTF_8)));

    }
}
